<!DOCTYPE html>
<html xmlns:th="http://www.w3.org/1999/xhtml">
<meta charset="utf-8">
<head th:include="include :: header"></head>
<body class="gray-bg">
<div class="wrapper wrapper-content ">
    <div class="row">
        <div class="col-sm-12">
            <div class="ibox float-e-margins">
                <div class="ibox-content">
                    <form class="form-horizontal m-t" id="signupForm">
                        <div class="form-group">
                            <label class="col-sm-3 control-label">对应证书：</label>
                            <div class="col-sm-8">
                                <select id="profileId" name="profileId" placeholder="请选择对应证书" class="form-control">
                                    <option value="">请选择</option>
                                    <option th:each="item : ${certificateProfile}"  th:value="${item.id}" th:text="${item.name}+'--'+${item.grade}"></option>
                                </select>
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-3 control-label">知识点：</label>
                            <div class="col-sm-8">
                                <select id="kpointsId" name="kpointsId" class="form-control">
                                </select>
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-3 control-label">适用等级：</label>
                            <div class="col-sm-8" id="know">
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-3 control-label">题库类型：</label>
                            <div class="col-sm-8">
                                <select id="itemBankType" name="itemBankType" placeholder="请选择题库类型" class="form-control">
                                    <option value="">请选择</option>
                                    <option value="0">练习题</option>
                                    <option value="1">考试题</option>
                                    <option value="2">案例分析题</option>
                                </select>
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-3 control-label">题目类型：</label>
                            <div class="col-sm-8">
                                <select id="topicTypes" name="topicTypes" placeholder="请选择题目类型" class="form-control">
                                    <option value="">请选择</option>
                                    <option value="0">单选题</option>
                                    <option value="1">多选题</option>
                                    <option value="2">判断题</option>
                                    <option value="3">实操题</option>
                                    <option value="4">案例分析题</option>
                                </select>
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-3 control-label">题目内容：</label>
                            <div class="col-sm-8">
                                <textarea rows="10" id="topicContent" name="topicContent" placeholder="请输入题目内容" class="form-control" type="text"></textarea>
                            </div>
                        </div>

                        <div id="typesId">
                            <div class="form-group">
                                <label class="col-sm-3 control-label">答案选项(请使用英文“;;”隔开每个选项)：</label>
                                <div class="col-sm-8">
                                    <input id="options" name="options" placeholder="请输入答案选项" class="form-control" type="text">

                                </div>
                            </div>
                            <div class="form-group">
                                <label class="col-sm-3 control-label">正确答案(请使用英文“;;”隔开每个选项)：</label>
                                <div class="col-sm-8">
                                    <input id="rightKey" name="rightKey" placeholder="请输入正确答案" class="form-control" type="text">

                                </div>
                            </div>
                            <div class="form-group">
                                <label class="col-sm-3 control-label">题目解析(实操题在此处填写题目简介)：</label>
                                <div class="col-sm-8">
                                    <textarea rows="5" id="topicAnalysis" name="topicAnalysis" placeholder="请输入题目解析" class="form-control" type="text"></textarea>
                                </div>
                            </div>
                        </div>

                        <div class="form-group">
                            <label class="col-sm-3 control-label">题目资源类型：</label>
                            <div class="col-sm-8">
                                <select id="resourceType" name="resourceType" placeholder="请选择题目资源类型" class="form-control">
                                    <option value="">请选择</option>
                                    <option value="0">文字</option>
                                    <option value="1">图片</option>
                                    <option value="2">视频</option>
                                    <option value="3">附件</option>
                                </select>
                            </div>
                        </div>

                        <div class="form-group" style="display: none" id="resourse">
                            <label class="col-sm-3 control-label">资源上传：</label>
                            <div class="col-sm-8">
                                <button type="button" class="btn btn-success inp_1"
                                        style="margin-top: 20px;display: none" id="btnUpload">
                                    <i class="fa fa-cloud"></i>上传资源
                                </button>
                                <input type="text" style="opacity:0;width: 1px;" id="fileRoute"
                                       name="fileRoute"/>
                                <span id="test" name="test" style="display:block "></span>
                            </div>
                        </div>

                        <div class="form-group">
                            <div class="col-sm-8 col-sm-offset-3">
                                <button type="submit" class="btn btn-primary">提交</button>
                            </div>
                        </div>
                    </form>
                </div>
            </div>
        </div>
    </div>
</div>
<div th:include="include::footer"></div>
<script src="//s.xlongwei.com/res/js/My97DatePicker/WdatePicker.js"></script>
<script type="text/javascript" src="/js/webJs/jzweb/itemBank/add.js">
</script>
</body>
</html>
